import java.util.Scanner;
public class Test {
    public static boolean t(int []arr){
        int count=0;
        for (int i = 0; i < arr.length; i++) {
            if(arr[i]%2!=0){
                count++;
            }
            else{
                if(count!=3)
                    count=0;
            }
        }
        if(count>=3)
            return true;
        else
            return false;
    }
    public static void main(String[] args) {
        Scanner scanner=new Scanner(System.in);
        System.out.println("输入数字个数:");
        int n=scanner.nextInt();
        int []arr=new int[n];
        for (int i = 0; i < arr.length; i++) {
            arr[i]=scanner.nextInt();
        }
        if (t(arr)) {
            System.out.println("数组中存在连续 3 个奇数。");
        } else {
            System.out.println("数组中不存在连续 3 个奇数。");
        }
    }
}
